#include("../../common/_container.html")
#define content()
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal" id="roleInfoForm">
		
			<input type="hidden" id="role.id" value="$role.id">

			<div class="row">
				<div class="col-sm-6 b-r">
					#JplusInput(id='role.name',name='角色名称',value=role.name,underline=true)
					#JplusInput(id='pName',name='上级名称',value=role.pName,onclick='RolInfoDlg.showPNameSelectTree(); return false;',readonly='readonly',hidden='role.pid',hiddenValue=role.pid,underline=true,style='background-color= #ffffff !important;')
					#JplusInput(id='deptName',name='部门名称',value=role.deptName,onclick='RolInfoDlg.showDeptSelectTree(); return false;',readonly='readonly',hidden='role.deptid',hiddenValue=role.deptid,underline=true,style='background-color= #ffffff !important;')
				</div>
				<div class="col-sm-6">
					#JplusInput(id='role.tips',name='别名',value=role.tips,underline=true)
					#JplusInput(id='role.num',name='排序',value=role.num,underline=true)
				</div>
			</div>

			<!-- 这是部门下拉框 -->
			<div id="deptContent" class="menuContent"
				style="display: none; position: absolute; z-index: 200;">
				<ul id="deptTree" class="ztree tree-box" style="width: 250px !important;"></ul>
			</div>
			
			<!-- 这是父级菜单下拉框 -->
			<div id="pNameContent" class="menuContent"
				style="display: none; position: absolute; z-index: 200;">
				<ul id="pNameTree" class="ztree tree-box" style="width: 250px !important;"></ul>
			</div>

			<div class="row btn-group-m-t">
				<div class="col-sm-10">
					#JplusButton(id='ensure',name='提交',btnType='info',onclick='RolInfoDlg.editSubmit()',icon='fa-check',spaceCss=false)
					#JplusButton(id='cancel',name='取消',btnType='danger',onclick='RolInfoDlg.close()',icon='fa-eraser')
				</div>
			</div>
		</div>

	</div>
</div>
<script src="#(CPATH)/static/module/admin/role/role_info.js"></script>
#end
